//
//  ThemeManager.h
//  iOS
//
//  Created by LiuHe@MacMini on 14-7-11.
//  Copyright (c) 2014年 cloudyoo. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol ThemeDelegate <NSObject>
@required
//主题切换
-(void)themeChange;
@end

@interface ThemeManager : NSObject

@property(nonatomic,copy) NSString *themeName;
@property(nonatomic,copy) NSString *themePath;


+(ThemeManager*)sharedManager;

-(NSString *)currentThemeName;
-(void)changeThemeName:(NSString *)themeName;
-(void)downloadTheme:(NSString *)url;

-(NSString *)getImagePath:(NSString *)imgName;
-(UIImage *)getImage:(NSString *)imgName;

-(UIColor *)colorForKey:(NSString *)key;
@end

#import "UIImage+Theme.h"
#import "UIColor+Theme.h"